<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core" xmlns:c="http://java.sun.com/jstl/core"	
					xmlns:a4j="http://richfaces.org/a4j"
				xmlns:rich="http://richfaces.org/rich"
				xmlns:h="http://java.sun.com/jsf/html">

<script>
	function selectPage(url) {
		showLoading();
		document.location.href=url;
	}

</script>

<h:form>
	<rich:toolBar width="100%">
	<rich:dropDownMenu value="File">		
		<rich:menuItem submitMode="none" onclick="selectPage('admission.jsf?edit=false')">
			<h:outputText value="Check In" />
		</rich:menuItem>
		<rich:menuItem submitMode="none" onclick="selectPage('admissionUpdate.jsf')">
			<h:outputText value="Update" />
		</rich:menuItem>
		<rich:menuItem submitMode="none" onclick="selectPage('exit.jsf')">
			<h:outputText value="Check Out" />
		</rich:menuItem>
		<rich:menuItem submitMode="none" onclick="selectPage('generateId.jsf')">
			<h:outputText value="Generate ID" />
		</rich:menuItem>		
		<rich:menuItem submitMode="none" onclick="selectPage('payment.jsf')" rendered="false">
			<h:outputText value="Payments" />
		</rich:menuItem>
		<rich:menuItem submitMode="none" onclick="selectPage('dailyRevenue.jsf')" rendered="false">
			<h:outputText value="Daily Revenue" />
		</rich:menuItem>
		<rich:menuItem submitMode="none" onclick="selectPage('dailyDepositAndRefund.jsf')">
			<h:outputText value="Daily Deposit and Refund" />
		</rich:menuItem>
				<rich:menuItem submitMode="none" onclick="selectPage('roomOccupancy.jsf')">
			<h:outputText value="Room Occupancy" />
		</rich:menuItem>
		<rich:menuItem submitMode="none" onclick="selectPage('patient.jsf')" rendered="false" >
			<h:outputText value="Patients" />
		</rich:menuItem>
		<rich:menuItem submitMode="none" onclick="selectPage('attendent.jsf')">
			<h:outputText value="Attendents" />
		</rich:menuItem>
		<rich:menuItem submitMode="none" onclick="selectPage('search.jsf')">
			<h:outputText value="Search" />
		</rich:menuItem>
	</rich:dropDownMenu>
	
	<rich:dropDownMenu value="Master">
		<rich:menuItem  submitMode="none" onclick="selectPage('building.jsf')">
			<h:outputText style="text-align:left" value="Buildings"/>
		</rich:menuItem>
		<rich:menuItem submitMode="none" onclick="selectPage('room.jsf')">
			<h:outputText value="Rooms" />
		</rich:menuItem>
		<rich:menuItem submitMode="none" onclick="selectPage('bed.jsf')">
			<h:outputText value="Beds" />
		</rich:menuItem>
		<rich:menuItem submitMode="none" onclick="selectPage('places.jsf')">
			<h:outputText value="Places" />
		</rich:menuItem>		
	</rich:dropDownMenu>	
	
	<rich:dropDownMenu id="menuPref" value="Preferences">
		<rich:menuItem submitMode="ajax" onclick="selectPage('preferences.jsf')">
				<h:outputText value="My Profile"></h:outputText>
		</rich:menuItem>
	</rich:dropDownMenu>
	
</rich:toolBar>
</h:form>
</ui:composition>